import { constantFormatHtml } from '@/utils'

export default [
  {
    dataIndex: 'NodeName',
    title: '菜单名称',
    minWidth: 200,
  },
  {
    dataIndex: 'ControllerName',
    title: '控制器',
    width: 120,
  },
  {
    dataIndex: 'ActionName',
    title: '入口方法',
    width: 120,
  },
  {
    dataIndex: 'NodeOrder',
    title: '排序号',
    align: 'center',
    width: 90,
  },
  {
    dataIndex: 'NodeShowType',
    title: '可见',
    align: 'center',
    width: 90,
    customRender: (record) => {
      return constantFormatHtml(record.value, 'Is')
    }
  },
  {
    key: 6,
    dataIndex: 'NodeType',
    title: '类型',
    align: 'center',
    width: 80
  },
  {
    dataIndex: 'Action',
    title: '操作',
    width: 160,
    align: 'center'
  }
]
